package com.chuantou.yuba.api.to;

import java.util.List;

import com.chuantou.yuba.util.Constants;
import com.google.gson.annotations.SerializedName;

public class FishingPlaceDataTO extends BaseTO {
	@SerializedName("data")
	private FishingPlaceListTO data;

	public FishingPlaceListTO getData() {
		return data;
	}

	public void setData(FishingPlaceListTO data) {
		this.data = data;
	}

	public List<FishingPlaceTO> getPlaces() {
		return data == null ? null : data.getPlaces();
	}

	@Override
	public boolean hasNextPage() {
		return data != null && data.getPlaces() != null && data.getPlaces().size() >= Constants.DEFAULT_PAGE_SIZE;
	}

	@Override
	public int getCurrentPage() {
		return data == null ? 1 : data.getCurrentPage();
	}
}
